package com.tailyou.hms.smartcity.ui.frg;

import com.tailyou.hms.smartcity.R;
import com.tailyou.hms.smartcity.beans.BannerBean;
import com.tailyou.hms.smartcity.https.HttpCallback;
import com.tailyou.hms.smartcity.https.HttpRetrofit;

import java.util.List;

public class HomeFragment extends BaseFragment{

    @Override
    protected void initUIAndData() {
        HttpRetrofit.getHttpApis().getBannerData().enqueue(new HttpCallback<List<BannerBean>>() {
            @Override
            protected void onSucceed(List<BannerBean> data) {
                //处理数据
            }
        });
    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_home;
    }

}
